/*
 * Powered By [Frank-Liz-Lee]
 * Copyright(C) 2012-2016 Liz Company
 * All rights reserved.
 */
package com.linln.modules.system.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 *
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /* 主键ID */
    private Long id;

    /* 用户名 */
    private String username;

    /* 用户昵称 */
    private String nickname;

    /* 密码 */
    private String password;

    /* 密码盐 */
    private String salt;

    /* 部门ID */
    private Long deptId;

    /* 头像 */
    private String picture;

    /* 性别（1:男,2:女） */
    private Byte sex;

    /* 邮箱 */
    private String email;

    /* 电话号码 */
    private String phone;

    /* 备注 */
    private String remark;

    /* 创建时间 */
    private java.sql.Timestamp createDate;

    /* 更新时间 */
    private java.sql.Timestamp updateDate;

    /* 状态（1:正常,2:冻结,3:删除） */
    private Byte status;

    private List<Role> roles;
    private Dept dept;


    /* get 主键ID */
    public Long getId() {
        return id;
    }

    /* set 主键ID */
    public void setId(Long id) {
        this.id = id;
    }
    /* get 用户名 */
    public String getUsername() {
        return username;
    }

    /* set 用户名 */
    public void setUsername(String username) {
        this.username = username;
    }
    /* get 用户昵称 */
    public String getNickname() {
        return nickname;
    }

    /* set 用户昵称 */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    /* get 密码 */
    public String getPassword() {
        return password;
    }

    /* set 密码 */
    public void setPassword(String password) {
        this.password = password;
    }
    /* get 密码盐 */
    public String getSalt() {
        return salt;
    }

    /* set 密码盐 */
    public void setSalt(String salt) {
        this.salt = salt;
    }
    /* get 部门ID */
    public Long getDeptId() {
        return deptId;
    }

    /* set 部门ID */
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    /* get 头像 */
    public String getPicture() {
        return picture;
    }

    /* set 头像 */
    public void setPicture(String picture) {
        this.picture = picture;
    }
    /* get 性别（1:男,2:女） */
    public Byte getSex() {
        return sex;
    }

    /* set 性别（1:男,2:女） */
    public void setSex(Byte sex) {
        this.sex = sex;
    }
    /* get 邮箱 */
    public String getEmail() {
        return email;
    }

    /* set 邮箱 */
    public void setEmail(String email) {
        this.email = email;
    }
    /* get 电话号码 */
    public String getPhone() {
        return phone;
    }

    /* set 电话号码 */
    public void setPhone(String phone) {
        this.phone = phone;
    }
    /* get 备注 */
    public String getRemark() {
        return remark;
    }

    /* set 备注 */
    public void setRemark(String remark) {
        this.remark = remark;
    }
    /* get 创建时间 */
    public java.sql.Timestamp getCreateDate() {
        return createDate;
    }

    /* set 创建时间 */
    public void setCreateDate(java.sql.Timestamp createDate) {
        this.createDate = createDate;
    }
    /* get 更新时间 */
    public java.sql.Timestamp getUpdateDate() {
        return updateDate;
    }

    /* set 更新时间 */
    public void setUpdateDate(java.sql.Timestamp updateDate) {
        this.updateDate = updateDate;
    }
    /* get 状态（1:正常,2:冻结,3:删除） */
    public Byte getStatus() {
        return status;
    }

    /* set 状态（1:正常,2:冻结,3:删除） */
    public void setStatus(Byte status) {
        this.status = status;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String toString() {
        return "User {" +
                " , id = " + id +
                " , username = " + username +
                " , nickname = " + nickname +
                " , password = " + password +
                " , salt = " + salt +
                " , deptId = " + deptId +
                " , picture = " + picture +
                " , sex = " + sex +
                " , email = " + email +
                " , phone = " + phone +
                " , remark = " + remark +
                " , createDate = " + createDate +
                " , updateDate = " + updateDate +
                " , status = " + status +
            "}";
        }
}